let line
while (line = readline()) {
  let [a, ...b] = line.split(' ').map(Number)
  print(b.reduce((p, v) => p + v))
}